#include "regserver.h"
#include "dbcreator.h"
#include "../client/log.h"

int main(int argc, char** argv)
{
    // Initialize Logger
    InitFileLogger(SRV_LOG);
    FLogger.information("============================================================");
    FLogger.information("server starting...");
    // check database
    DBCreator db(DB_NAME,DB_SCHEMA);
    db.CheckDatabase();

    // Reg Server
    RegServer app;
    app.run(argc, argv);

    UnInitFileLogger();
}
